package com.ggb.reactive.domain.entity

import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Table

@Table("address_book")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "分类实体 AddressBook")
data class AddressBook(
    @Id
    var id: Long? = null,
    //修改人
    @Schema(description = "用户id")
    var userId: Long? = null,
    @Schema(description = "收货人")
    var consignee: String? = null,
    @Schema(description = "手机号")
    var phone: String? = null,
    @Schema(description = "性别 0 女 1 男")
    var sex: String? = null,
    //省级区划编号
    @Schema(description = "省级区划编号")
    var provinceCode: String? = null,

    //省级名称
    @Schema(description = "省级名称")
    var provinceName: String? = null,

    //市级区划编号
    @Schema(description = "市级区划编号")
    var cityCode: String? = null,

    //市级名称
    @Schema(description = "市级名称")
    var cityName: String? = null,

    //区级区划编号
    @Schema(description = "区级区划编号")
    var districtCode: String? = null,

    //区级名称
    @Schema(description = "区级名称")
    var districtName: String? = null,

    //详细地址
    @Schema(description = "详细地址")
    var detail: String? = null,

    //标签
    @Schema(description = "标签")
    var label: String? = null,

    //是否默认 0否 1是
    @Schema(description = "是否默认 0否 1是")
    var isDefault: Int? = null,
)
